package com.bingxue.edu.management.system.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

/**
 * 角色资源信息更新请求
 *
 * @author panbo
 * @since 2024/08/21 16:33
 */
@Data
@Schema(description = "角色资源信息更新请求")
public class RoleResourceUpdateReq {

    @Schema(description = "角色id")
    @NotBlank(message = "角色id不能为空")
    private String roleId;

    @Schema(description = "资源id列表")
    @NotEmpty(message = "资源id列表不能为空")
    private List<String> resourceList;
}
